package com.railway.service.impl;

import java.util.List;

import com.railway.bean.Suggestions;
import com.railway.dao.SuggestionsDao;
import com.railway.dao.impl.SuggestionsDaoImpl;
import com.railway.service.SuggestionsService;

public class SuggestionsServiceImpl implements SuggestionsService {
	
	private SuggestionsDao s = new SuggestionsDaoImpl(); 
	@Override
	public int addSuggestions(Suggestions suggestions) {
		return s.insertSuggestion(suggestions);
	}
	@Override
	public List<Suggestions> selectAllSuggestions(int pageNum, int pageSize) {
		
		return s.selectAllSuggestions(pageNum, pageSize);
	}
	@Override
	public int selectCountSuggestion() {
		// TODO Auto-generated method stub
		return s.selectCountSuggestion();
	}
	@Override
	public int delSuggtion(int suggestionId) {
		// TODO Auto-generated method stub
		return s.delSuggtion(suggestionId);
	}
	@Override
	public int delAbsoluteSuggtion(int suggestionId) {
		// TODO Auto-generated method stub
		return s.delAbsoluteSuggtion(suggestionId);
	}
	
	@Override
	public List<Suggestions> selectSuggestionLimit(String key, int pageNum, int pageSize) {
		return s.selectSuggestionLimit(key, pageNum, pageSize);
	}
	
	@Override
	public int selectCountSuggestion(String key) {
		return s.selectCountSuggestion(key);
	}

}
